package com.gdms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gdms.dao.IAnnouncementDao;
import com.gdms.entity.Announcement;
import com.gdms.service.IAnnouncementService;

@Service
public class AnnouncementServiceImpl implements IAnnouncementService {
	@Autowired
	private IAnnouncementDao announcementDao;

	public int addAnnouncement(Announcement announcement) {
		// TODO Auto-generated method stub
		return announcementDao.addAnnouncement(announcement);
	}

	public int deleteAnnouncement(int id) {
		// TODO Auto-generated method stub
		return announcementDao.deleteAnnouncement(id);
	}

	public List<Announcement> showAllAnnouncement() {
		// TODO Auto-generated method stub
		return announcementDao.showAllAnnouncement();
	}
}
